import { Route, Routes, BrowserRouter as Router, Navigate } from "react-router-dom";
import Home from './pages/Home';
import About from './pages/About';
import Mine from './pages/Mine';
import Register from './pages/Register'
import List from './pages/List'
import NotFound from './pages/404'
import Login from './pages/Login'




function RouterConfig() {
    return (
        <Routes>
            <Route path="/" element={<Home />} />
            <Route path="/about" element={<About />} />
            <Route path="/mine" element={<Mine />} />
            <Route path="/register" element={<Register />} />
            <Route path="/list" element={<List />} />
            <Route path="/login" element={<Login />} />
            <Route path="/404" element={<NotFound />} />
            <Route path="*" element={<Navigate to="/404" />}/> 
        </Routes>
    );
  }
  
  export default RouterConfig;